<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>登录</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <link href="css/css.css" rel="stylesheet">
    
    <link href="css/chosen.css" rel="stylesheet">

    <link charset="utf-8" rel="stylesheet" media="screen" type="text/css" href="css/929fce5888dcb6d8980fc7174f81d92d.css?mod=1422952910"
    />
    <link charset="utf-8" rel="stylesheet" media="screen" type="text/css" href="css/01466c1e2a896301ed3c139a5038f25d.css?mod=1421660312"
    />
    <!--导航公共-->
    <link charset="utf-8" rel="stylesheet" media="screen" type="text/css" href="css/9a3fbe3acd45615db0b546121dd02187.css?mod=1429666776"
    />
    <script charset="utf-8" src="http://wpa.b.qq.com/cgi/wpa.php"></script>
    <script src="js/jquery-3.2.1.min.js"></script>
</head>

<body>
    
    <div class="com_top" style="height: 50px;font-size: 20px;padding-top: 10px;">
        <div class="wrap">
            <div class="com_top_l fl">

                <a href="index.html">首页</a>
                <span class="welcome">欢迎来到水晶王国&nbsp;&nbsp;</span>
                <a id="Login" class="login" href="#formLoginRegis"></a>
                <a class="login" href="javascript:" id="login">请登录</a>
                <a href="reg.html">免费注册</a>
            </div>
            <div class="com_top_r fr">
            </div>
        </div>
    </div>
    <div style="width: 100%;height: auto;">
    <input name="car_model" type="hidden" value="104543" />
    <div class="wrap">
        <div class="navbotLine"></div>
    </div>


    <div class="login" style="background:url(images/home.png) #fff no-repeat;width: 600px;height: 300px;margin-top: 150px;text-align: center;">


        <input type="hidden" name="http_referer" />
        <div class="login-form-row">
            <div class="title">手机号：</div>
            <div class="input">
                <input class="pub-input" type="text" name="login_user" id="login_name_input" placeholder="请输入手机号">
            </div>
        </div>
        <div class="login-form-row">
            <div class="title">密码：</div>
            <div class="input">
                <input class="pub-input" type="password" name="login_pwd" id="login_password_input" placeholder="请输入密码">
            </div>
        </div>
        <div class="login-form-row forget">
            <div class="title"></div>
        </div>
        <div class="login-submit">
            <a href="javascript:;" onclick="loginCMY();" class="pub-btn-middle-orange">登&nbsp;&nbsp;&nbsp;&nbsp;录</a>
        </div>
        <div class="login-register">
            <span class="reg">
                <a href="reg.html">免费注册</a>
            </span>
        </div>

    </div>
    
</div>
    <script type="text/javascript">
        function loginCMY() {
            $("#member_login_form").submit();
            var loginData = {
                loginName: $('#login_name_input').val(),
                passWord: $('#login_password_input').val(),
                deviceCode: '0'
            }
            $.post('http://192.168.0.120/api/login.html', loginData, (data) => {
                if (data.status == 1) {
                    localStorage.setItem('fid', data.data.fid);
                }
            })
        }

        function validateLogin() {

            if (!$.trim($('#login_name_input').val())) {
                $.notice('请输入您的手机号!', 'error');
                return false;
            }

            if (!$.trim($('#login_password_input').val())) {
                $.notice('请输入您的密码!', 'error');
                return false;
            }

            return true;
        }     
    </script>
</body>

</html>